//
//  XTMyDairy.m
//  BeautifulHome
//
//  Created by dlios on 15-7-10.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTMyDairy.h"

@implementation XTMyDairy
- (void)dealloc
{
    [self.myDairyTitle release];
    [self.myDairyContent release];
    [super dealloc];
}
-(void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.myDairyTitle forKey:@"myTitle"];
    [aCoder encodeObject:self.myDairyContent forKey:@"myContent"];
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self) {
        self.myDairyTitle = [aDecoder decodeObjectForKey:@"myTitle"];
        self.myDairyContent = [aDecoder decodeObjectForKey:@"myContent"];
    }
    return self;
    
}
- (instancetype)getData:(NSMutableDictionary *)mDic
{
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:mDic];
        
    }
    return self;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
@end
